package edu.chinasoft.domain;


import java.util.List;


public class Function {
    private int functionId;
    private String functionName;
    private String functionPath;

    //因为是自关联，所以要有一个关于自己的引用 表示父亲
    private Function fatherFunction;
    private List<Role> roleList;
    public Function() {
    }

    public int getFunctionId() {
        return functionId;
    }

    public void setFunctionId(int functionId) {
        this.functionId = functionId;
    }

    public String getFunctionName() {
        return functionName;
    }

    public void setFunctionName(String functionName) {
        this.functionName = functionName;
    }

    public String getFunctionPath() {
        return functionPath;
    }

    public void setFunctionPath(String functionPath) {
        this.functionPath = functionPath;
    }

    public Function getFatherFunction() {
        return fatherFunction;
    }

    public void setFatherFunction(Function fatherFunction) {
        this.fatherFunction = fatherFunction;
    }

    public List<Role> getRoleList() {
		return roleList;
	}

	public void setRoleList(List<Role> roleList) {
		this.roleList = roleList;
	}

	@Override
    public String toString() {
        return "Function{" +
                "functionId=" + functionId +
                ", functionName='" + functionName + '\'' +
                ", functionPath='" + functionPath + '\'' +
                '}';
    }
}
